package com.example.video;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.applet.Applet;
import java.applet.AudioClip;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;

@SpringBootApplication
public class VideoApplication {

    public static void main(String[] args) throws MalformedURLException {
        SpringApplication.run(VideoApplication.class, args);
        File file = new File("D:\\浏览器默认下载位置\\雨中寻爱记.mp3");
        URL url = file.toURI().toURL();
        AudioClip audioClip = Applet.newAudioClip(url);
        audioClip.play();

    }

}
